!{include file='common/iheader.htm'}
<style>
	.list_view .acl_dl h3{font-weight:bold;}
	.list_view .acl_dl dd{padding-left:20px;}
	.list_view .acl_dl dd label{margin-right:10px;}
</style>
<div id="i_nav">
	<h3 class="page_title">权限设置 -- !{$site.name} </h3>
	<a class="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" href="/admin.php?app=site&act=manager"><span class="ui-icon ui-icon-document"></span>网站管理</a>
</div>
	<form action="" method="post">
		<div class="list_view">
			!{include file='acl/list.htm'}
		</div>
		<div class="form_item form_btn_item">
			<input type="submit" class="button ui-button ui-widget ui-state-default ui-corner-all" value="保存"/>
		</div>
	</form>
<script language="javascript">
	$(function(){
		$('input[name="namespace"]').click(function(){
			if($(this).attr('checked') == 'checked'){
				$(this).parents('.acl_li').find('input[type="checkbox"]').attr('checked','checked');
			}else{
				$(this).parents('.acl_li').find('input[type="checkbox"]').removeAttr('checked');
			}
		});
	});
</script>
!{include file='common/ifooter.htm'}